package com.facemox.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.facemox.bean.GlobalParameter;
import com.facemox.mapper.GlobalParameterMapper;
import com.facemox.service.GlobalParameterService;

@Service
public class GlobalParameterServiceImpl implements GlobalParameterService {

    @Autowired
    private GlobalParameterMapper globalParameterMapper;
    @Override
    public int addGlobalParameter(GlobalParameter globalParameter) {
        int effectLine = globalParameterMapper.addGlobalParameter(globalParameter);
        return effectLine;
    }
    @Override
    public GlobalParameter getGlobalParameter() {
        GlobalParameter globalParameter = globalParameterMapper.getGlobalParameter();
        return globalParameter;
    }
    @Override
    public int UpdateGlobalParameter(GlobalParameter globalParameter) {
        int effectLine = globalParameterMapper.update(globalParameter);
        return effectLine;
    }

}
